package com.zwj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zwj.bo.SetTeamStudentLeaderBo;
import com.zwj.bo.SelectTeamBo;
import com.zwj.dto.SelectTeamQuery;
import com.zwj.dto.SelectTeamStudentQuery;
import com.zwj.entity.TeamInfoEntity;
import com.zwj.entity.TeamMemberInfoEntity;
import com.zwj.vo.SelectTeamVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TeamMapper extends BaseMapper<TeamInfoEntity> {


    List<Object> selectTeam(SelectTeamQuery selectTeamQuery);
    int addTeamStudent(TeamMemberInfoEntity teamMemberInfoEntity);
    List<Object> selectTeamStudent(SelectTeamStudentQuery selectTeamStudentQuery);

    String selectTeamStudentByIds(SetTeamStudentLeaderBo setTeamStudentLeaderBo);

    String selectTeamStudentLeader(String teamInfoId);

    int setTeamStudentLeader(TeamMemberInfoEntity teamMemberInfoEntity);

    int deleteTeamStudentById(TeamMemberInfoEntity teamMemberInfoEntity);

    int setStudentTeam(TeamMemberInfoEntity teamMemberInfoEntity);

    String  getTeamByStudentId(String studentId);
}
